package routes

import (
	"fiberdemo/app/api"
	"fiberdemo/app/middleware"
	"github.com/gofiber/fiber/v2"
)

func InitRoute(app *fiber.App) {

	r := app.Group("/api", middleware.ApiAuth)
	{
		r.Get("/", api.Index.Index)

		r.Post("/user/login", api.User.Login)

		//r.Get("/", api.Index.Index)
		//r.Get("/", api.Index.Index)
		//r.Get("/", api.Index.Index)
	}
}
